<template>
	<view class="pageBox">
		<text>todos</text>
		<view v-for="(item,index) in todoList" :key="item.value">
			<text>{{item.label}}</text>
		</view>
		<text>{{$store.state.msg}}</text>
		<view class="uni-content">
			<text>{{ i18n.invite }}</text>
			<text>{{ i18n.game }}</text>
		</view>
		<gTitle title="我是标题222"></gTitle>
	</view>
</template>

<script>
	import gTitle from '../../components/gTitle.vue'
	export default {
		components: {
			gTitle
		},
		data() {
			return {
				todoList: []
			}
		},
		computed: {
			i18n() {
				return this.$t('index')
			}
		},
		created() {
			var app = getApp()
			this.todoList = app.globalData.gTodoLIst;
			console.log('this.$store', this.$store.state.msg)
		},
		async onReady() {
			const page = getCurrentPages()
			console.log('page',page)
			uni.request({
				url: '/users',
				method: 'GET',
				data: {},
				success: res => {
					console.log('res',res)
				},
				fail: () => {},
				complete: () => {}
			});
		},
		methods: {

		}
	}
</script>

<style>

</style>
